package likou.offer;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * @Info:
 * @Author: 唐小尊
 * @Date: 2020/8/2  13:42
 */

public class _06 {
    public static void main(String[] args) {
        List<Integer> integers = new ArrayList<>();
        integers.add(1);
        integers.add(3);
        integers.add(2);
        Collections.reverse(integers);
        System.out.println(integers.toArray(new Integer[3])[0]);
    }
}
